package com.cskaoyan.mapper;

import com.cskaoyan.bean.CskaoyanmallComment;
import com.cskaoyan.bean.CskaoyanmallCommentExample;
import java.util.List;

import com.cskaoyan.bean.vo.WXGoodsCommentDataVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface CskaoyanmallCommentMapper {
    long countByExample(CskaoyanmallCommentExample example);

    int deleteByExample(CskaoyanmallCommentExample example);

    /**
     * delete by primary key
     * @param id primaryKey
     * @return deleteCount
     */
    int deleteByPrimaryKey(Integer id);

    /**
     * insert record to table
     * @param record the record
     * @return insert count
     */
    int insert(CskaoyanmallComment record);

    /**
     * insert record to table selective
     * @param record the record
     * @return insert count
     */
    int insertSelective(CskaoyanmallComment record);

    List<CskaoyanmallComment> selectByExample(CskaoyanmallCommentExample example);

    /**
     * select by primary key
     * @param id primary key
     * @return object by primary key
     */
    CskaoyanmallComment selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") CskaoyanmallComment record, @Param("example") CskaoyanmallCommentExample example);

    int updateByExample(@Param("record") CskaoyanmallComment record, @Param("example") CskaoyanmallCommentExample example);

    /**
     * update record selective
     * @param record the updated record
     * @return update count
     */
    int updateByPrimaryKeySelective(CskaoyanmallComment record);

    /**
     * update record
     * @param record the updated record
     * @return update count
     */
    int updateByPrimaryKey(CskaoyanmallComment record);

    List<WXGoodsCommentDataVO> selectDataByGoods();

    Integer selecHasPicCount(Integer valueId);

    Integer selectAllCount(Integer valueId);

    List<Integer> selectUserIdByValueId(Integer valueId);

    List<String> selectAddTimeByValueId(Integer valueId);

    List<CskaoyanmallComment> selectAllByValueId(Integer valueId);

    CskaoyanmallComment selectAll(int i);
}